// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
03A4: name_thread 'SPECIALS' 

:SPECIALS_19
0001: wait 0 ms 
00D6: if and
0AB0:   key_pressed 68 
0AB0:   key_pressed 189
004D: jump_if_false @SPECIALS_19 

0247: load_model #CELLPHONE 
0247: load_model #AK47 
0247: load_model #SHOTGSPA
038B: load_requested_models 
0729: AS_actor $PLAYER_ACTOR hold_cellphone 1 
0001: wait 500 ms 
0ACD: show_text_highpriority "Sweet is on your way." time 3000
0001: wait 200 ms 
0AAC: 30@ = load_audiostream "CLEO\SOUND\Sweet.MP3" 
0AAD: set_mp3 30@ perform_action 1 
0001: wait 3000 ms 
0729: AS_actor $PLAYER_ACTOR hold_cellphone 0 
0001: wait 500 ms 
0249: release_model #CELLPHONE 
04C4: store_coords_to 13@ 14@ 15@ from_actor $PLAYER_ACTOR with_offset 0.0 2.0 -1.0 
07AF: $PLAYER_GROUP = player $PLAYER_CHAR group 
023C: load_special_actor 'Sweet' as 9 // models 290-299 
:SPECIALS_197
0001: wait 0 ms 
00D6: if 
023D:   special_actor 9 loaded 
004D: jump_if_false @SPECIALS_197 
009A: 0@ = create_actor_pedtype 8 model #SPECIAL09 at 13@ 14@ 15@ 
0631: put_actor 0@ in_group $PLAYER_GROUP 
0223: set_actor 0@ health_to 25000 
0446: set_actor 0@ dismemberment_possible 0 
04D8: set_actor 0@ drowns_in_water 0 
07FE: set_actor 0@ fighting_style_to 5 moves 6 
03FE: set_actor 0@ money 5000 
0946: set_actor 0@ actions_uninterupted_by_weapon_fire 1 
04D8: set_actor 0@ drowns_in_water 0 
0446: set_actor 0@ dismemberment_possible 0 
07DD: set_actor 0@ attack_rate 75 // previously known as temper_to 
//01B2: give_actor 0@ weapon 30 ammo 9999 // Load the weapon model before using this 
actor.GiveWeaponAndAmmo(0@, ak47, 99999)
02E2: set_actor 0@ weapon_accuracy_to 58 
0296: unload_special_actor 9 
0002: jump @SPECIALS_334 

:SPECIALS_334
0001: wait 0 ms 
00D6: if and
0AB0:   key_pressed 68 
0AB0:   key_pressed 189 
004D: jump_if_false @SPECIALS_368 
0002: jump @SPECIALS_417 

:SPECIALS_368
00D6: if 
0118:   actor 0@ dead 
004D: jump_if_false @SPECIALS_334 
0ACD: show_text_highpriority "Sweet is killed." time 3000
0001: wait 3000 ms 
009B: destroy_actor 0@ 
0002: jump @SPECIALS_19 

:SPECIALS_417
0AAD: set_mp3 30@ perform_action 0 
0AAE: release_mp3 30@ 

//0001: wait 500 ms 
0AAC: 30@ = load_audiostream "CLEO\SOUND\SweetBYE.MP3" 
0AAD: set_mp3 30@ perform_action 1 
0001: wait 500 ms 
0ACD: show_text_highpriority "Sweet is dismissed." time 3000
009B: destroy_actor 0@ 

0001: wait 1000 ms 
0002: jump @SPECIALS_19 
